<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page isELIgnored="false" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>自助平台</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
    <![endif]-->
</head>
<style>
    html body{
        background-color:#f5f5f5;
        overflow-x: hidden;
    }

</style>
<body>
<div class="header">
    <div style="position: relative; padding: 10px; background-color: #007AFF;">
        <img src="/static/logo.png" style="position:relative;left: 10px;"/>
    </div>
</div>
<div class="row">
    <c:if test="${empty requestScope.student}">
        <div class="col-xs-12 col-md-4 col-sm-6">
            <div style="padding: 10px ; background-color: #f5f5f5;">
                <div class="clearfix" style="background-color: white; border: 10px solid white; text-align: center;">
                    <span><h3>暂无数据</h3></span>
                </div>
            </div>
        </div>
    </c:if>
    <c:forEach var="student" items="${requestScope.student}">
    <div class="col-xs-12 col-md-4 col-sm-6">
        <div style="padding: 10px ; background-color: #f5f5f5;">
            <div class="clearfix" style="background-color: white; border: 10px solid white;">
                <div style="float: left;">
                    <img src="/image/${student.schoolId}" alt="照片" width="110px">
                </div>
                <div style="position: relative; left: 15px; ">
                    <div>姓名：${student.name}</div>
                    <div>学号：${student.schoolId}</div>
                    <div>性别：${student.sex}</div>
                    <div>身份证号：${student.sfzh}</div>
                    <div>考生号：${student.ksh}</div>
                    <div>专业：${student.className}</div>
                    <div>地址：${student.addr}</div>
                </div>
            </div>
        </div>
    </div>
    </c:forEach>

</div>

<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
</body>
</html>
